/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package validator.tubes.ai.i;

import java.io.BufferedWriter;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Scanner;

/**
 *
 * @author Mahdan Ahmad F A
 */
public class Main {

    /**
     * @param args the command line arguments
     * @throws java.io.FileNotFoundException
     */
    public static void main(String[] args) throws FileNotFoundException, IOException {
        // TODO code application logic here
        String path_A = "soaldemo_infoumum";
        String path_B = "soaldemo_jadwalcewek";
        String path_C = "soaldemo_jadwaltempat";
        
        String file_input   = "input.txt";
        String file_output  = "output.txt";
        
        FileWriter writer           = new FileWriter(file_output);
        BufferedWriter bufferWriter = new BufferedWriter(writer);
        
        FileReader reader   = new FileReader(file_input);
        Scanner scanGeneral = new Scanner(reader);
        
        ArrayList<String> arrayResult = new ArrayList<>();
        
        while(scanGeneral.hasNextLine()) {
            arrayResult.add(scanGeneral.nextLine());
        }
        
        NantoTheLover tampanMapan = new NantoTheLover(path_A, path_B, path_C);
        
        String message = "";
        for (int i = 0; i < arrayResult.size(); i++) {
            message = tampanMapan.validate(arrayResult.get(i));
            
            bufferWriter.write("Kelompok " + (i + 1) + " : " + message);
            bufferWriter.newLine();
        } // */
        
        bufferWriter.close();
        
    }
}
